package com.cloudlead.commonData.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import org.joda.time.DateTime;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * ETbCarOperation is a Querydsl bean type
 */
@Label("TbCarOperation")
public class ETbCarOperation extends AbstractIdEntity<String> {

    private static final long serialVersionUID =9000697604633L;    
    @Size(max=100)
    @Label("相关费用")
    private String amount;

    @Size(max=24)
    @Label("carId")
    private String carId;

    @Size(max=50)
    @Label("createBy")
    private String createBy;

    @Label("createDate")
    private DateTime createDate;

    @NotNull(groups={UpdateCheck.class})
    @Size(max=24)
    @Label("id")
    private String id;

    @Size(max=100)
    @Label("动态内容")
    private String operation;

    @Size(max=255)
    @Label("备至")
    private String remark;

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public DateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(DateTime createDate) {
        this.createDate = createDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
         return String.format("ETbCarOperation { amount : %s,carId : %s,createBy : %s,createDate : %s,id : %s,operation : %s,remark : %s }",amount,carId,createBy,createDate,id,operation,remark);
    }

}

